using System;
using System.Xml.Serialization;

namespace ICalendar.CalendarProperties
{
    [Serializable]
    [XmlRoot("action")]   
    public class Action : CalendarPropertyBase<ActionValue>
    {
        protected override void SetValue(string value)
        {
            this.Value = (ActionValue)Enum.Parse(typeof(ActionValue), value, true);
        }

        protected override string GetValue()
        {
            return Value.ToString().ToUpperInvariant();
        }

        protected override void SetParametersFromXParameters(XParameterCollection xparams)
        {
            
        }

        protected override XParameterCollection GetXParametersFromParameters()
        {
            return null;
        }

        protected override string[] GetXReservedParametersNames()
        {
            return null;
        }
    }
}